import request from '@/utils/request'

//角色管理
const api = {

  // 修改权限
  // http://122.9.33.163:6300/project/3/interface/api/87
  editPermise(sendData) {
    return request.request({
      url: '/sys/sys-role/editPermise',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // 修改角色名
  // http://122.9.33.163:6300/project/3/interface/api/74
  edit(sendData) {
    return request.request({
      url: '/sys/sys-role/edit',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // 删除角色
  // http://122.9.33.163:6300/project/3/interface/api/80
  del(sendData) {
    return request.request({
      url: '/sys/sys-role/del',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // 添加角色名
  // http://122.9.33.163:6300/project/3/interface/api/77
  add(sendData) {
    return request.request({
      url: '/sys/sys-role/add',
      method: 'POST',
      data: sendData,
      loading: false,
    })
  },

  // 角色列表
  // http://122.9.33.163:6300/project/3/interface/api/71
  list(sendData) {
    return request.request({
      url: '/sys/sys-role/list',
      method: 'GET',
      params: sendData,
      loading: false,
    })
  },

  // 角色权限--所有权限列表
  // http://122.9.33.163:6300/project/3/interface/api/83
  permiseList(sendData) {
    return request.request({
      url: '/sys/sys-role/permiseList',
      method: 'GET',
      params: sendData,
      loading: false,
    })
  },
}
export default api